ubt 0.4.2

Unified Binary Tree implementation based on EIP-7864
Documentation
---
id: TASK-8
title: Enable parallel threshold optimization
status: Done
assignee: []
created_date: '2026-03-31 20:55'
updated_date: '2026-03-31 21:28'
labels: []
dependencies: []
priority: low
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Add minimum stem count threshold before using rayon parallelization to reduce overhead for small trees
<!-- SECTION:DESCRIPTION:END -->

## Implementation Notes

<!-- SECTION:NOTES:BEGIN -->
Added PARALLEL_STEM_THRESHOLD constant (100 stems). Sequential processing used below threshold to avoid rayon overhead.
<!-- SECTION:NOTES:END -->